package model

import "time"

type UserInfoTab struct {
	Id                int64     `xorm:"pk comment('id') BIGINT(20)"`
	Username          string    `xorm:"not null comment('用户名') unique VARCHAR(64)"`
	Password          string    `xorm:"not null comment('密码（sha256）') VARCHAR(64)"`
	ProfilePictureUrl string    `xorm:"comment('头像url') VARCHAR(128)"`
	Nickname          string    `xorm:"comment('昵称') VARCHAR(64)"`
	UpdateTime        time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
	CreateTime        time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"`
}
